home *** CD-ROM | disk | FTP | other *** search
- Public Domain Program
-
- The author, Ron Ginsberg, 4961 182nd Lane N.W., Anoka, MN. 55303,
- submits the referenced program for your use at your own risk at no
- charge for its use, and does not accept any direct or implied liability
- toward its users for any and all damages possibly occurring to any
- apparatus, program, or data, etc., as a result of using the entire
- program or any portion thereof. This program or any part thereof is not
- to be sold but is intended to be distributed for media cost only where
- applicable. Parts of this program may contain segments of other
- published public domain software. The author would appreciate comments
- regarding bug fixes and improvements.
-
- December 8, 1986
-
- This is beta-test version of a text string search program
- GETLINE.com. This will search an ASCII file for text on a line basis
- (255 characters per line maximum) without upper or lower case
- sensitivity. It also pays no attention to the eighth bit so Wordstar
- format files (DATASTAR) can be searched. The searched file is not
- modified.
-
- Syntax is:
- GETLINE x:filename.ext word1 word2 word3 .....
- e.g. GETLINE b:pcsig101.300 fin
- will find lines containing finance, FINISH, Infinite ,etc.
-
- GETLINE b:pcsig101.300 term comm
- will find lines containing term communications, not terminal
- communications.
-
- Note that no quotes are around the key string. Wildcards are not
- supported.
-
- I just modified this version to accept a filename (filename.fls)
- which contains a list of files (one filename per line in the usual
- format -- pathing is supported) to be searched. This file of filenames
- must end in the extension .FLS. When the program detects the extension
- .FLS in the command line, it will read in the names from that file and
- then search each one sequentially. IT IS IMPORTANT TO NOTE that the
- path or disk drive assignment specified in the command line for a
- filelist file is NOT PASSED to the individual file names in that file.
- Therefore, it is best that the filelist file be placed in the same
- subdirectory and/or disk of the files to be searched, if practical,
- with that location made the current disk and directory, and the default
- path set to the disk and subdirectory where getline is located.
-
- Alternatively, each line in the filelist file can contain the
- full drive and path specification. A typical filelist is shown below:
-
- (The file is named MSDOSCAT.FLS)
- \PCSIG\PC-SIG1.100
- \PCSIG\PC-SIG101.200
- \PCSIG\PC-SIG201.300
- \PCBLUE\PC-BLUE.CAT
-
- Up to twenty lines of filenames may be placed in a filelist file,
- each line containing up to forty characters. Wildcards are not
- supported. In the example shown, the command GETLINE MSDOSCAT.FLS
- FLIGHT PLAN would search the three files in the PCSIG subdirectory,
- then the file in the PCBLUE subdirectory for the text string "flight
- plan" and display each line it finds. In this example only the current
- disk is searched.
-
- Hard copy output to a file or printer may be had as usual by the
- redirection entry as the last parameter of the command line, thus:
- GETLINE MSDOSCAT.FLS COMMUN >prn
- will send its output to the printer instead of the screen. If GETLINE
- is called as a batch file line, then printer redirection will be lost
- and the screen echo command CNTRL-PRTSCRN should be used before the
- batch file is activated.
-
-